<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
	<head>	
		<title>工作计划</title>
		<link href="<%=contextPath%>/css/common.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<%=contextPath%>/js/validator.js"></script>
		<script language="javascript" src="<%=contextPath%>/js/func.js"type=""></script>
		<script type="text/javascript" src="<%=contextPath%>/js/My97DatePicker/WdatePicker.js"></script>	
		<script type="text/javascript">
		Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [
				       {
				            text: '保存',
				            icon:"<%=contextPath%>/images/fanhui.png",
				            handler:function(){
				            	comt();
				            }
				        },'-',
				        {
				            text: '返回',
				            icon:"<%=contextPath%>/images/fanhui.png",
				            handler:function(){
				            	back();
				            }
				        }
			    	]
			    });
			});
			
		</script>
	</head>
  
  <body topmargin="0">
  <div id = "tbar"></div>
  <center>
			<!-- 信息提示 -->
			<div result><font color="red">${info }</font></div>
		</center>
 		<form id="frmM" class="ct" name="frmM" method="POST" action="<%=contextPath%>/projectImplement!save.do">
			<s:hidden name="projectImplement.id" />	
			<s:hidden name="projectImplement.unitid" />	
			<c:if test='${empty projectImplement.zxstate}'><input type="hidden" name="projectImplement.zxstate" id="projectImplement.zxstate"  value="1" />				 
			</c:if>
			<c:if test='${!empty projectImplement.zxstate}'><input type="hidden" name="projectImplement.zxstate" id="projectImplement.zxstate"  value="${projectImplement.zxstate}" />				 
			</c:if>
			 <table width="100%"  id="infotab" >
				<tr>
					<th width="18%" align="left" class="ct" > 负责人：</th>
					<td width="31%" >
				      <s:textfield name="projectRecord.projectno"  datatype="Require" onclick ="aaa()" maxlength="50" size="25" msg="项目编号必须输入。" /></td>
					<th width="22%" class="ct">班组：</th>
					<td width="29%" >
				       <s:textfield name="projectRecord.projectname"  datatype="Require" maxlength="50" size="25" msg="项目名称必须输入。" /></td>
				    <th width="29%" >成员：</th>
				    <td width="29%" >&nbsp;</td>
				    <th width="29%" >变电站：</th>
				    <td width="29%" >&nbsp;</td>
				</tr>
				<tr>
					<th align="left" >工作范围：</th>
					<td colspan="7"  >
						<s:select  id="projectRecord.projectlevel"  name="projectRecord.projectlevel" list="#{'1':'省级','2':'市级'}" listKey="key" listValue="value" /></td>
				</tr>
			
				<tr>
					<th rowspan="3" align="left" >工作任务：</th>
					<td colspan="7" >
						<s:textfield name="projectRecord.directorName"  datatype="Require" maxlength="50" size="25" msg="项目负责人必须输入。" />
						1.</td>
				</tr>
				<tr>
				  <td colspan="7" >2.</td>
   </tr>
				<tr>
				  <td colspan="7" >3.</td>
   </tr>
				<tr>
				  <th rowspan="3" align="left" >工作任务：</th>
				  <td colspan="5" >1</td>
				 
				  <td >完成
				    <input type="checkbox" name="projectRecord.zxqkcheck" value="0"    /></td>
				  <td >未完成
			        <input type="checkbox" name="projectRecord.zxqkcheck" value="0"    /></td>
   </tr>
				<tr>
				  <td colspan="5" >2</td>
				  <td >完成
			      <input type="checkbox" name="projectRecord.zxqkcheck" value="0"    /></td>
				  <td >未完成
				    <input type="checkbox" name="projectRecord.zxqkcheck" value="0"    /></td>
   </tr>
				<tr>
				  <td colspan="5" >3</td>
				  <td >&nbsp;</td>
				  <td >&nbsp;</td>
   </tr>
				<tr>
                  <th align="left" >开始时间：</th>
				  <td >&nbsp;</td>
				  <th >结束时间：</th>
				  <td >&nbsp;</td>
				  <th >到位人员：</th>
				  <td >&nbsp;</td>
				  <th>验收人员：</th>
				  <td >&nbsp;</td>
   </tr>
				<tr>
                  <th align="left" >工作票号：</th>
				  <td >&nbsp;</td>
				  <th >质量控制卡：</th>
				  <td >&nbsp;</td>
				  <th >风险辨识控制卡</th>
				  <td >&nbsp;</td>
				  <th>作业控制卡：</th>
				  <td >&nbsp;</td>
   </tr>
				<tr align="left">
					<th colspan="8" >&nbsp;</th>
   </tr>
				<tr>
					<th align="left" >调试报告：</th>
					<td >
						<s:textfield name="projectRecord.hostingDays"  datatype="Number" maxlength="50" size="25" msg="当年举办期限必须输入整数。" /></td>
					<th >台账记录：</th>
					<td >
						<s:textfield  onclick="WdatePicker({el:$dp.$('projectRecord.hostingNextstartday')})"  name="projectRecord.hostingNextendday" maxlength="50" size="25" /></td>
				    <th>同车班组：</th>
				    <td >&nbsp;</td>
				    <th>车辆：</th>
				    <td >&nbsp;</td>
				</tr>
				<tr>
					<th align="left" >备注</th>
					<td colspan="7" >
						<s:textfield  onclick="WdatePicker({el:$dp.$('projectRecord.hostingNextendday')})"  name="projectRecord.hostingNextendday" maxlength="50" size="25"  /> 
				</tr>
				<tr>
				  <th colspan="8" align="left" >变压器班：</th>
   </tr>
				<tr>
				  <th align="left" >负责人：</th>
				  <td ><s:textfield  onclick="WdatePicker({el:$dp.$('projectRecord.hostingNextendday')})"  name="projectRecord.hostingNextendday" maxlength="50" size="25"  /></td>
				  <th >工作班成员：</th>
				  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
   </tr>
				<tr>
				  <th align="left" >&nbsp;</th>
				  <td >&nbsp;</td>
				  <th >&nbsp;</th>
				  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
   </tr>
				<tr>
				  <th align="left" >&nbsp;</th>
				  <td >&nbsp;</td>
				  <th >&nbsp;</th>
				  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
                  <td >&nbsp;</td>
   </tr>
</table>
   </form>
  </body>
</html>
<script language="javascript">
	 // 保存
     function comt(){
        if(!Validator.Validate(frmM,1)){
			return false;
		}
     	document.frmM.action = "<%=contextPath%>/projectImplement!save.do";
     	document.frmM.submit();
     }
     
     // 返回
     function back() {
        
     	 document.frmM.action = "<%=contextPath%>/projectImplementList!getList.do";
		 document.frmM.submit();
     }

</script>
